package com.csair.seam.domain.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.csair.seam.domain.mapper.VisitsMapper;
import com.csair.seam.domain.model.entity.VisitStatistics;
import com.csair.seam.domain.model.entity.Visits;
import com.csair.seam.domain.model.param.VisitsParam;
import com.csair.seam.domain.service.IVisitsService;

@Service
public class VisitsServiceImpl extends ServiceImpl<VisitsMapper, Visits> implements IVisitsService {

	@Override
	public List<VisitStatistics> findModuleVisitsList(VisitsParam param) {
		return getBaseMapper().findModuleVisitsList(param);
	}

	@Override
	public int addVisitNum(Visits visits) {
		return getBaseMapper().addVisitNum(visits);
	}

	@Override
	public List<Visits> findUserVisitsList(VisitsParam param) {
		List<Visits> uvs = getBaseMapper().findUserVisitsList(param);
		return uvs;
	}
}
